import Particles from "react-particles";
import { loadSnowPreset } from "tsparticles-preset-snow";

import snow from './snow.png';

export default () => {
  const customInit = async(engine) => {
    await loadSnowPreset(engine);
  }
  
  const options = {
    preset: "snow",
    background: {
      color: {
        value: "#fff",
      },
    },
    particles: {
      color: {
        value: "#fa8683",
      },
      size: {
        value: { min: 1, max: 8 },
      },
    }
  };
  return (
    <Particles options={options} init={customInit} />
  )
}
